cmake_minimum_required(VERSION 3.16)
project(elfparser VERSION 1.0.0 LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(Qt6 REQUIRED COMPONENTS Core Widgets)

qt_standard_project_setup()

set(SOURCES
    src/main.cpp
    src/mainwindow.cpp
    src/elfparser.cpp
    src/elfmodel.cpp
    src/detailview.cpp
    src/SymbolEntry.cpp
)

set(HEADERS
    include/mainwindow.h
    include/elfparser.h
    include/elfmodel.h
    include/detailview.h
    include/elfstructs.h
)

qt_add_executable(elfparser
    ${SOURCES}
    ${HEADERS}

)

target_link_libraries(elfparser
    PRIVATE
    Qt6::Core
    Qt6::Widgets
)

target_include_directories(elfparser PRIVATE include)
